package net.javamine.test.service.impl;

import javax.annotation.Resource;

import net.javamine.test.dao.TestDao;
import net.javamine.test.entity.PojoJsr303Test;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service("myServise")
public class MyServiceImpl {
	
	@Resource(name="testDao")
	private TestDao testDao;
	
	@Transactional
	public void save(PojoJsr303Test pojo) {
		testDao.save(pojo);
		System.out.println("in service");
	}
}
